home *** CD-ROM | disk | FTP | other *** search
- Path: news.wwa.com!rmartin
- From: rmartin@oma.com (Robert C. Martin)
- Newsgroups: comp.object,comp.lang.c++,comp.realtime,comp.dcom.telecom.tech,comp.arch.embedded
- Subject: Re: Can OO be successful in real-time embedded systems?
- Followup-To: comp.object,comp.lang.c++,comp.realtime,comp.dcom.telecom.tech,comp.arch.embedded
- Date: 11 Apr 1996 16:44:11 GMT
- Organization: Object Mentor
- Message-ID: <RMARTIN.96Apr11114411@rcm.oma.com>
- References: <316BF0C5.1FE1@condat.de> <dibaldDpnpBH.5Et@netcom.com>
- NNTP-Posting-Host: rcm.oma.com
- In-reply-to: dibald@netcom.com's message of Wed, 10 Apr 1996 17:16:29 GMT
-
- In article <dibaldDpnpBH.5Et@netcom.com> dibald@netcom.com (Dave Baldwin) writes:
-
- Object-dis-oriented programming is (like some others) intended to hide
- the hardware from the programmer.
-
- This is not quite correct. The intention of OO is not to hide the
- hardware from the programmer. The intention of OO is to provide tools
- to the programmer whereby he can manipulate the hardware at varying
- levels of abstraction. If he wants to twiddle the bits, he can
- go right ahead and do so, even in OO. If he would rather deal at a
- higher level of abstraction, he can use OO to create that level.
-
- OO is a tool, not a religion, and not a philosophy.
-
- How useful can this possibly be when
- small embedded systems are expressly for dealing with the hardware? Some
- of the techniques can be useful, but the overhead and 'hiding' is exactly
- what you don't need in hardware control.
-
- Incorrect. The overhead is minimal (arguably zero), and if the
- engineer chooses to hide something, he must feel there is something to
- hide. Example: When controlling a modem in order to dial a phone
- number, one could twiddle the bits every time you need to dial, or one
- can hide the bit twiddling in a function, and call the function
- whenever you need to dial.
-
- If you have two different kinds of modems, one could always check a
- flag to make sure you are calling the right function, or one could
- create an OO interface so that you don't care which type of modem you
- are controlling.
-
- There is no universal programming method.
-
- Granted.
-
- I'd bet that the software that operates the networks and switches isn't
- done in 'OO' for the same reasons.
-
- Actually, a lot of it is. I have clients in the telecom industry who
- are using OO/C++ in their switches and network managers, etc.
-
- Last time I looked at the cards in a
- telephone network bay, I saw thousands of 8032's doing the hardware
- control. There were one or two of them on each interface card in a
- network terminal that had tens-of-thousands of telephone lines passing
- thru it.
-
- I don't know about 8032's. However, some of my clients are using
- C++/OOD in motorola based microcontrollers (68000 based)....
-
-
-
- --
- Robert Martin | Design Consulting | Training courses offered:
- Object Mentor Assoc.| rmartin@oma.com | OOA/D, C++, Advanced OO
- 14619 N. Somerset Cr| Tel: (847) 918-1004 | Mgt. Overview of OOT
- Green Oaks IL 60048 | Fax: (847) 918-1023 | http://www.oma.com
-
-